//
// Created by lingzhitech on 25-11-7.
//

#ifndef LIMITQUOTE_HPP
#define LIMITQUOTE_HPP
#include "Quote.h"

// exercise 15.7
class LimitQuote: public Quote {
public:
    LimitQuote() : Quote() {}
    LimitQuote(const std::string& bookNumber, double price, std::size_t maxQuantity, double discount)
    : Quote(bookNumber, price), maxQuantity_(maxQuantity), discount_(discount) {

    }
    double netPrice(std::size_t) const override;

private:
    std::size_t maxQuantity_ = 0;
    double discount_ = 0.0;
};



#endif //LIMITQUOTE_HPP
